package net.wanho.util;

import net.wanho.dao.UserDao;
import net.wanho.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

/**
 * Author：汤小洋
 * Date：2025-06-27 9:07
 * Description：<描述>
 */
public class MyUtil {

    public static void print(){
        UserDao userDao = (UserDao) ApplicationContextHolder.getBean("userDaoImpl");

        userDao.insert(new User(1, "张三", "123456", LocalDateTime.now()));
    }
}
